package com.kzj.common.utils;

public class VerifyUtil {
    static public boolean verifyPhone(String phone){
        //TODO 手机号的校验
        return phone.matches("^1[3-9]\\d{9}$");
    }
    static public boolean verifyEmail(String email){
        //TODO 邮箱的校验
        return email.matches("^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$");
    }
}
